package testExcepcions.ex04;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Exemple04 {

	public static void main(String[] args) throws IOException {
		BufferedReader br = null;
		String sCurrentLine;

		try {
			br = new BufferedReader(new FileReader("testing.txt"));

			while ((sCurrentLine = br.readLine()) != null) {
				System.out.println(sCurrentLine);

			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (br != null) {
				try{
					br.close();
				}catch (IOException e) {
					e.printStackTrace();
				}
				}
			}
		}
	}


